package com.bjsxt.Testenum;

import java.util.Random;

public class tesgt {
    public static final int W=0;
    public static final int T=1;
    public static final int S=2;

    public static void main(String[] args) {
        System.out.println(tesgt.W);
        System.out.println(tesgt.T);
        System.out.println(Week.W);

        for (Week k:Week.values()){
            System.out.println(k);
        }

        int a = new Random().nextInt(7);
        switch (Week.values()[a]){
            case T:
                System.out.println("er");
                break;
        }
    }
}

enum Week{
    W,T,S,U,E,Y,N
}